function [V] = TestError(X, row, col, data)

[m, n] = size(X);

data = sparse(row, col, data, m, n);

omega = data > 0;

V = logLoss( X, data);
V = V.*omega;
V = sum(V(:));
V = V/nnz(omega);

end